package com.lihao.sam.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @ClassName EmpInputScore
 * @Description TODO
 * @Author LiHao
 * @Date 2022/11/23 16:47
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class EmpInputScore {
    /** 序号 */
    private Integer id;
    /** 员工编号 */
    private Integer empNo;
    /** 员工姓名 */
    private String empName;
    /** 日期 */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date cdate;
    /** 原因 */
    private String reason;
    /** 分数 */
    private Integer score;
    /** 栋号 */
    private Integer buildingNo;

    //参照EmpSetting类
    public EmpInputScore(Integer id, Integer empNo, String empName) {
        this.id = id;
        this.empNo = empNo;
        this.empName = empName;
    }

    //参照EmpSetting类
    public EmpInputScore(Integer empNo, String empName, Date cdate, String reason, Integer score, Integer buildingNo) {
        this.empNo = empNo;
        this.empName = empName;
        this.cdate = cdate;
        this.reason = reason;
        this.score = score;
        this.buildingNo = buildingNo;
    }
}
